import Layout from '@/views/layout'

export default {
  path: '/device',
  name: 'deviceCenter',
  component: Layout,
  redirect: '/device/manage',
  meta: {
    title: '设备管理',
    icon: 'nested',
    perm: 'm:device',
    sort: 1
  },
  children: [
    {
      path: '/device/manage',
      name: 'deviceManage',
      component: () => import('@/views/device/list'),
      meta: {
        title: '设备列表',
        icon: 'nested',
        perm: 'm:device:manage'
      }
    },
    {
      path: '/device/manage/config',
      name: 'deviceConfig',
      component: () => import('@/views/device/config'),
      meta: {
        title: '设备配置',
        icon: 'nested',
        perm: 'm:device:manage'
      }
    },
    {
      path: '/device/manage/operate/list',
      name: 'deviceConfig',
      component: () => import('@/views/device/optList'),
      meta: {
        title: '设备运营列表',
        icon: 'nested',
        perm: 'm:device:manage'
      }
    }
  ]
}
